import { Component } from "../ioc";
import { File } from "node:buffer";

@Component()
class FileService {
  constructor() {
    console.log("FileService constructor");
  }

  downloadFile() {
    const filePath = "uploads/abc.txt";
    console.log(filePath);
    return "file:" + filePath;
  }

  saveFile(file: File): string {
    console.log(file);
    return "file:" + file.name;
  }
}

export default FileService;